package org.jeecg.modules.InveotoryCenter.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.InveotoryCenter.entity.chayiEntity;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface ChayichuliMapper {
    IPage<chayiEntity> getchayiList(Page<chayiEntity> page, @Param("code") String code,@Param("differentTypeId")  String differentTypeId);

    //查询所有差异类型 返回list
    List<Map<String, String>> getgetAlldifferentType();

    void addchayichuli(chayiEntity entity);

    int addchayiproject(chayiEntity entity);

    chayiEntity getchayidetail(@Param("id") String id);

    List<chayiEntity> getchayiprojectlistbychayiId(@Param("id") String id);

    //查询这个批次老的库存
    String getpicioldkucun(@Param("remainingInventoryId") String remainingInventoryId);

    //修改库存剩余批次
    void updateshengyupicikucun(@Param("remainingInventoryId") String remainingInventoryId,@Param("valueOf")  String valueOf);

    //修改差异的状态
    int updatechayistatus(@Param("id") String id);


    //查询这个批次所在库存的总库存
    String getoldSumkucun(@Param("remainingInventoryId")  String remainingInventoryId);

    void updateSumkucun(@Param("remainingInventoryId") String remainingInventoryId,@Param("valueOf") String valueOf);

    int adddifferenType(chayiEntity entity);
}
